using System;
namespace Lcygcc.Infrastructure.WindowService
{
	public class WindowsServiceManager
	{
		public void InstallService(WindowsService service)
		{
			WindowsServiceTool.Instance.InstallService(service.Name, service.Path, service.Description);
		}
		public void UninstallService(WindowsService service)
		{
			WindowsServiceTool.Instance.UninstallService(service.Name, service.Path);
		}
		public void StartService(WindowsService service)
		{
			WindowsServiceTool.Instance.StartService(service.Name, service.Path);
		}
		public void StopService(WindowsService service)
		{
			WindowsServiceTool.Instance.StopService(service.Name, service.Path);
		}
		public bool ServiceIsExist(WindowsService service)
		{
			return WindowsServiceTool.Instance.ServiceIsExist(service.Name);
		}
		public bool ServiceIsRunning(WindowsService service)
		{
			return WindowsServiceTool.Instance.ServiceIsRunning(service.Name);
		}
	}
}
